package com.letcoding.easyExcel.entity.write;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @ClassName SimpleWriteEntity
 * @Description Excel根据注解写实体类
 * @Author will
 * @Date 2021/5/29 21:58
 */
@Getter
@Setter
@ToString
public class WriteByAnnotationEntity {
    @ExcelProperty(value = "字符串标题", index = 0)
    private String title;
    @ExcelProperty(value = "日期标题", index = 1)
    private Date dateTitle;
    /**
     * 这里设置3 会导致第二列空的
     */
    @ExcelProperty(value = "数字标题", index = 3)
    private Double numberTitle;
}
